package com.fooddelivery.Mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fooddelivery.Common.responseVO.LoginBackVO;
import com.fooddelivery.Entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author sunwenyuan
 * @since 2025-08-29
 */
@Mapper
public interface UserMapper extends BaseMapper<User> {


    void save(User user);

    @Select("select * from user where id = #{id}")
    User getById(Integer id);

    LoginBackVO login(User user);
}
